﻿@model HRM.Models.DotDK_TK

@{
    ViewBag.Title = "Thêm mới Đợt ĐK&TK";
}

<h2>Thêm mới Đợt ĐK&TK</h2>
<script src="../../Content/datepicker/jquery-1.10.2.js" type="text/javascript"></script>
<link href="../../Content/datepicker/jquery-ui.css" rel="stylesheet" type="text/css" />
<script src="../../Content/datepicker/jquery-ui.js" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>DotDK_TK</legend>

        <div class="editor-label">
            Mã Đợt ĐK&TK
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MaDDKy)
            @Html.ValidationMessageFor(model => model.MaDDKy)
        </div>

        <div class="editor-label">
            Tên ĐK&TK
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TenDDKy)
            @Html.ValidationMessageFor(model => model.TenDDKy)
        </div>

        <div class="editor-label">
            Thời gian bắt đầu
        </div>
        <div class="editor-field">
            <script>
                $(function () {
                    $("#datepickerbd").datepicker();
                });
            </script>
            @*<input type="text" id="datepickerbd"/>*@
            @Html.TextBoxFor(model => model.TgBatDau, new {id="datepickerbd" })
        </div>

        <div class="editor-label">
           Thời gian kết thúc
        </div>
        <div class="editor-field">
            <script>
                $(function () {
                    $("#datepickerkt").datepicker();
                });
            </script>
            @Html.TextBoxFor(model => model.TgKetThuc, new {id="datepickerkt" })
            @Html.ValidationMessageFor(model => model.TgKetThuc)
        </div>

        

        <p>
            <input type="submit" value="Thêm mới" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
